package com.lxc.infrastructure.persistent.dao;

import com.lxc.domain.manage.model.entity.GatewayServerDetailEntity;
import com.lxc.domain.operation.model.entity.OPGatewayServerDetailEntity;
import com.lxc.infrastructure.persistent.po.GatewayServerDetail;
import com.lxc.types.common.OperationRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author lxc18
 * @date 2024/12/14 20:28
 * @description IGatewayServerDetailDao
 */
@Mapper
public interface IGatewayServerDetailDao {
    void insert(GatewayServerDetail gatewayServerDetail);

    //感觉有错
    GatewayServerDetail queryGatewayServerDetail(String gatewayId,String gatewayAddress);

    boolean updateGatewayStatus(GatewayServerDetail gatewayServerDetail);

    //分页查询
    List<GatewayServerDetail> queryGatewayServerDetailListByPage(OperationRequest<OPGatewayServerDetailEntity> request);

    int queryGatewayServerDetailListCountByPage(OperationRequest<OPGatewayServerDetailEntity> request);


    List<GatewayServerDetail> queryGatewayServerDetailList();
}
